package cn.ljy.mes.dao.mapper;

import cn.ljy.authority.dao.BaseMapper;
import cn.ljy.mes.model.ShopProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ShopProductMapper extends BaseMapper<ShopProduct> {
    /**
     * 将选中产品都转移到指定产品栏目下
     * @param productIds 该参数为Product类的标识属性结合，不能为Null。集合长度任意
     * @param productTypeId 要转移到的栏目标识符
     */
    void batchTransferProductsToProductType(@Param(value = "productIds")String[] productIds, @Param(value = "productTypeId")long productTypeId);
}
